package com.hunan.chinamobile.service.impl;

import com.hunan.chinamobile.dao.RoleMapper;
import com.hunan.chinamobile.model.Role;
import com.hunan.chinamobile.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> findAll() {
        return roleMapper.selectAll();
    }

    @Override
    public void save(Role model) {

    }

    @Override
    public void deleteById(String id) {

    }

    @Override
    public void update(Role model) {

    }

    @Override
    public Role findById(String id) {
        return null;
    }

    @Override
    public Role findRoleByName(String roleName) {
        return roleMapper.findRoleByName(roleName);
    }
}
